Skip to main content

Lens Desktop Proxy Configuration Guide

Poly Lens Desktop 2.3 Windows supports Proxy Configuration enabling IT administrators to route application traffic through HTTP(S) proxies using either system-wide or per-component configurations, offering flexibility to match enterprise network policies. Compatible with enterprise SSL inspection and certificate management, the proxy configuration support improves network visibility and control for IT administrators and facilitates troubleshooting and traffic analysis using proxy tools like Fiddler.

Brief

All Lens Desktop internet traffic can be redirected through an HTTP(S) proxy. This can be achieved in two ways:

  1. Per Component Configuration
  2. System-Wide Configuration (Windows only)

If a per-component proxy is configured, it overrides the system-wide configuration. Mix of these two approaches will also work. For example, configuring proxy for all user applications (Lens Desktop (Frontend) will use that configuration) and use component proxy setting for Lens Control Service.

In the examples below, a locally running mitmproxy is used with its default configuration (*:8080, SSL inspection turned on, no authorization). This allows all Lens Desktop internet traffic to be sniffed and analyzed without interfering with Lens Desktop.

Note: With the default mitmproxy configuration, HTTPS WebSocket traffic will not work, which may block part of the Lens Control Service (LCS) traffic. This can be resolved by configuring mitmproxy or using alternative tools like Fiddler, which support this functionality out of the box.

Per Component Configuration

Two components of Lens Desktop use the network. Both must be configured separately:

Lens Desktop (Frontend)

  1. If SSL inspection is used, ensure that proxy certificate is added to Trusted Root Certification Authorities under Local Computer or Current User.
  2. Modify autostart and/or links to always start Lens Desktop with --proxyserver command line switch. Check here for details.

Example: "C:\Program Files\Poly\Poly Lens Desktop\lens-desktop.exe" --proxyserver=127.0.0.1:8080

Lens Control Service (LCS)

  1. If SSL inspection is used, ensure that proxy certificate is added to Trusted Root Certification Authorities under Local Computer.
  2. Create (or update) %ProgramFiles%\Poly\Lens Control Service\appsettings-Admin.json file with Proxy section. Similar section already exists in %ProgramFiles%\Poly\Lens Control Service\appsetting.json and can be used as reference. Note that modifications of %ProgramFiles%\Poly\Lens Control Service\appsetting.json are not supported.

Example:

{
"Proxy": {
"ProxyServer": "127.0.0.1:8080",
"VerificationUrls": [
"https://lens.poly.com",
"https://api.silica-prod01.io.lens.poly.com"
]
}
}

System-Wide Configuration (Windows Only)

On Windows, you can configure a system-wide proxy that applies to all applications. However, note that if a per-component proxy is set, it will override the system-wide settings.

Steps to Configure

  1. Open the Windows Settings app.
  2. Navigate to Network & Internet > Proxy.
  3. Modify the Windows Registry:
    • Navigate to: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVVersion\Internet Settings
    • Set the following registry entry:
      • Entry Name: ProxySettingsPerUser
      • Type: DWORD
      • Value: 0
  4. Copy two registry entries (easy way to copy registry key is to export it, modify .reg file and then import):
    • From: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections
    • To: KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections
  5. Create the following registry entries in: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
    • ProxyEnable: REG_DWORD set to 1
    • ProxyServer: REG_SZ set to the proxy address (for our example it is 127.0.0.1:8080)
  6. Restart the LCS service and Lens Desktop application.